package org.hdax.dm.client;

import org.hdax.dm.entity.item_type.DmItemType;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@FeignClient(name = "dm-item-provider")
public interface DmItemTypeClient {

    @PostMapping(path = "/findAll")
    List<DmItemType> findAll();

    @PostMapping(path = "/findByParent")
    List<DmItemType> findByParent(@RequestParam("parent") Integer parent);
}
